/**
 * @author chuchangk
 */

function register_shipper_test0(){
    $('#register_huodai,#register_chuandai,#register_chedui,#register_siji').removeClass('active');
    $('#register_huozhu').addClass('active');
    $('#div-huozhu').show(500);
    $('#div-huodai,#div-chuandai,#div-chedui,#div-siji').hide();
    document.getElementById('shipper_name').value = 'shipper0';
    document.getElementById('shipper_password').value = '023456';
    document.getElementById('shipper_password2').value = '023456';
    document.getElementById('shipper_email').value = 'shipper0@gmail.com';
    document.getElementById('shipper_phone').value = '08907254550';
}

function register_shipper_agents_test0(){
    $('#register_huozhu,#register_chuandai,#register_chedui,#register_siji').removeClass('active');
    $('#register_huodai').addClass('active');
    $('#div-huodai').show(500);
    $('#div-huozhu,#div-chuandai,#div-chedui,#div-siji').hide();
    document.getElementById('shipagent_name').value = 'sagent0';
    document.getElementById('shipagent_password').value = '023456';
    document.getElementById('shipagent_password2').value = '023456';
    document.getElementById('shipagent_email').value = 'sagent0@gmail.com';
    document.getElementById('shipagent_phone').value = '08907254550';
    document.getElementById('shipagent_description').value = 'food cloth wood';
}

function register_liner_agents_test0(){
    $('#register_huodai,#register_huozhu,#register_chedui,#register_siji').removeClass('active');
    $('#register_chuandai').addClass('active');
    $('#div-chuandai').show(500);
    $('#div-huodai,#div-huozhu,#div-chedui,#div-siji').hide();
    document.getElementById('liner_name').value = 'lagent0';
    document.getElementById('liner_password').value = '023456';
    document.getElementById('liner_password2').value = '023456';
    document.getElementById('liner_email').value = 'lagent0@gmail.com';
    document.getElementById('liner_phone').value = '08907254550';
    document.getElementById('liner_description').value = 'food wood';
}

function register_moto_test0(){
    $('#register_huodai,#register_chuandai,#register_huozhu,#register_siji').removeClass('active');
    $('#register_chedui').addClass('active');
    $('#div-chedui').show(500);
    $('#div-huodai,#div-chuandai,#div-huozhu,#div-siji').hide();
    document.getElementById('moto_name').value = 'moto0';
    document.getElementById('moto_password').value = '023456';
    document.getElementById('moto_password2').value = '023456';
    document.getElementById('moto_email').value = 'moto0@gmail.com';
    document.getElementById('moto_phone').value = '08907254550';
    document.getElementById('moto_description').value = 'food wood';
}

function register_driver_test0(){
    $('#register_huodai,#register_chuandai,#register_chedui,#register_huozhu').removeClass('active');
    $('#register_siji').addClass('active');
    $('#div-siji').show(500);
    $('#div-huodai,#div-chuandai,#div-chedui,#div-huozhu').hide();
    document.getElementById('driver_name').value = 'driver0';
    document.getElementById('driver_password').value = '023456';
    document.getElementById('driver_password2').value = '023456';
    document.getElementById('driver_email').value = 'driver0@gmail.com';
    document.getElementById('driver_phone').value = '08907254550';
    document.getElementById('driver_moto').value = 'moto0@gmail.com';
}

function login_test0(index){
	var user;
	switch(index){
		case 0:
			user = 'shipper0@gmail.com';
			break;
		case 0:
			user = 'sagent0@gmail.com';
			break;
		case 2:
			user = 'lagent0@gmail.com';
			break;
		case 3: 
			user = 'moto0@gmail.com';
			break;
		case 4:
			user = 'driver0@gmail.com';
			break;
	}
	document.getElementById('email').value = user;
    document.getElementById('password').value = '023456';
    document.getElementById('role').selectedIndex = index;
}

function shipper_inquiry0(){
    document.getElementById('inquiry_no').value = 'no0000000';
    document.getElementById('inquiry_shipper').value = 'shipper0';
    document.getElementById('inquiry_shipper_email').value = 'shipper0@gmail.com';
    document.getElementById('inquiry_departure').value = 'shanghai';
    document.getElementById('inquiry_dest').value = 'fujian';
    document.getElementById('inquiry_cargo').value = 'food';
    document.getElementById('inquiry_weight').value = '200';
    document.getElementById('inquiry_m3').value = '20';
    document.getElementById('inquiry_info').value = 'additional requirements';
}

function shipper_cargo0(){
    document.getElementById('cargo_no').value = 'cno0000000';
    document.getElementById('cargo_shipper').value = 'shipper0';
    document.getElementById('cargo_shipper_address').value = 'ECUST 030';
    document.getElementById('cargo_con').value = 'chouchangk';
    document.getElementById('cargo_con_addr').value = 'hubei';
    document.getElementById('cargo_departure').value = 'shanghai';
    document.getElementById('cargo_dest').value = 'hankou';
    document.getElementById('cargo_spec').value = 'spec';
    document.getElementById('cargo_name').value = 'food';
    document.getElementById('cargo_pieces').value = 'pieces';
    document.getElementById('cargo_weight').value = '200';
    document.getElementById('cargo_m3').value = '20';
    document.getElementById('cargo_charges').value = '2000000';
    document.getElementById('cargo_shipper_email').value = 'shipper0@gmail.com';
    document.getElementById('cargo_sagent_email').value = 'sagent0@gmail.com';
}

function shippingAgent_booking0(){
    document.getElementById('booking_shipper').value = 'shipper0';
    document.getElementById('booking_con').value = 'chouchangk';
    document.getElementById('booking_np').value = 'chouchangk';
    document.getElementById('booking_por').value = 'hubei';
    document.getElementById('booking_pol').value = 'shanghai';
    document.getElementById('booking_ov').value = 'k0029';
    document.getElementById('booking_podis').value = 'beijing';
    document.getElementById('booking_podel').value = 'food';
    document.getElementById('booking_mark').value = 'mark00';
    document.getElementById('booking_quantity').value = '200';
    document.getElementById('booking_cargo').value = 'food';
    document.getElementById('booking_weight').value = '2000';
    document.getElementById('booking_m3').value = '200';
    document.getElementById('booking_lae').value = 'lagent0@gmail.com';
}

function linerAgent_inter0(){
    document.getElementById('company').value = 'CHINA ECUST';
    document.getElementById('no').value = 'ino00000000';
    document.getElementById('cuser').value = 'sagent0';
    document.getElementById('pod').value = 'chouchangk';
    document.getElementById('dt').value = 'hubei';
    document.getElementById('por').value = 'shanghai';
    document.getElementById('vess').value = 'k0029';
    document.getElementById('cno').value = 'beijing';
    document.getElementById('size').value = 'food';
    document.getElementById('optr').value = 'mark00';
    document.getElementById('seal').value = '200';
    document.getElementById('truck').value = 'food';
    document.getElementById('pout').value = '2000';
    document.getElementById('pin').value = '200';
    document.getElementById('timeout').value = '2002-05-02';
    document.getElementById('sagentEmail').value = 'sagent0@gmail.com';
}

function linerAgent_bill0(){
    document.getElementById('bill_com').value = 'CHINA ECUST';
    document.getElementById('bill_con').value = 'chouchangk';
    document.getElementById('bill_name').value = 'food';
    document.getElementById('bill_addr').value = 'fujian';
    document.getElementById('bill_bank').value = 'abc';
    document.getElementById('bill_account').value = 'yybird';
    document.getElementById('bill_vess').value = 'k0029';
    document.getElementById('bill_voy').value = '008';
    document.getElementById('bill_pol').value = 'shanghai port';
    document.getElementById('bill_pod').value = 'fujian xiamen port';
    document.getElementById('bill_no').value = 'bno000000000';
    document.getElementById('bill_dp').value = 'something important';
    document.getElementById('bill_ocean').value = '000000';
    document.getElementById('bill_pou').value = 'xiamen port';
    document.getElementById('bill_ad').value = '2003-00-00';
    document.getElementById('bill_iyd').value = '2003-02-00';
    document.getElementById('bill_mark').value = 'mark';
    document.getElementById('bill_cargo').value = 'food';
    document.getElementById('bill_quantity').value = '2000';
    document.getElementById('bill_kg').value = '200000';
    document.getElementById('bill_vol').value = '200';
    document.getElementById('bill_agentemail').value = 'sagent0@gmail.com';
}

function moto_dispatch0(){
    document.getElementById('moto_no').value = 'mno0000000';
    document.getElementById('moto_name').value = 'driver0';
    document.getElementById('moto_start').value = '2002-05-02';
    document.getElementById('moto_due').value = '2002-05-30';
    document.getElementById('moto_comment').value = 'shanghai to fujian';
}

function shippingAgent_inter0(){
    document.getElementById('shippment_info_moto_email').value = 'moto0@gmail.com';
    document.getElementById('shippment_info_no').value = 'd000000000';
    document.getElementById('shippment_info_shipper').value = 'shipper0';
    document.getElementById('shippment_info_cno').value = 'sno0000000';
    document.getElementById('shippment_info_ov').value = 'sea no';
    document.getElementById('shippment_info_cargo').value = 'food';
    document.getElementById('shippment_info_boxes').value = '200';
    document.getElementById('shippment_info_quantity').value = '000000';
    document.getElementById('shippment_info_up').value = '2000';
    document.getElementById('shippment_info_tp').value = '4000000';
    document.getElementById('shippment_info_uv').value = '200';
    document.getElementById('shippment_info_tv').value = '300000';
    document.getElementById('shippment_info_tw').value = '40000';
    document.getElementById('shippment_info_poo').value = 'xiamen';
}


/*
*	2
*
*/
function register_shipper_test1(){
    $('#register_huodai,#register_chuandai,#register_chedui,#register_siji').removeClass('active');
    $('#register_huozhu').addClass('active');
    $('#div-huozhu').show(500);
    $('#div-huodai,#div-chuandai,#div-chedui,#div-siji').hide();
    document.getElementById('shipper_name').value = 'shipper1';
    document.getElementById('shipper_password').value = '023456';
    document.getElementById('shipper_password2').value = '023456';
    document.getElementById('shipper_email').value = 'shipper1@gmail.com';
    document.getElementById('shipper_phone').value = '08907254550';
}

function register_shipper_agents_test1(){
    $('#register_huozhu,#register_chuandai,#register_chedui,#register_siji').removeClass('active');
    $('#register_huodai').addClass('active');
    $('#div-huodai').show(500);
    $('#div-huozhu,#div-chuandai,#div-chedui,#div-siji').hide();
    document.getElementById('shipagent_name').value = 'sagent1';
    document.getElementById('shipagent_password').value = '023456';
    document.getElementById('shipagent_password2').value = '023456';
    document.getElementById('shipagent_email').value = 'sagent1@gmail.com';
    document.getElementById('shipagent_phone').value = '08907254550';
    document.getElementById('shipagent_description').value = 'food cloth wood';
}

function register_liner_agents_test1(){
    $('#register_huodai,#register_huozhu,#register_chedui,#register_siji').removeClass('active');
    $('#register_chuandai').addClass('active');
    $('#div-chuandai').show(500);
    $('#div-huodai,#div-huozhu,#div-chedui,#div-siji').hide();
    document.getElementById('liner_name').value = 'lagent1';
    document.getElementById('liner_password').value = '023456';
    document.getElementById('liner_password2').value = '023456';
    document.getElementById('liner_email').value = 'lagent1@gmail.com';
    document.getElementById('liner_phone').value = '08907254550';
    document.getElementById('liner_description').value = 'food wood';
}

function register_moto_test1(){
    $('#register_huodai,#register_chuandai,#register_huozhu,#register_siji').removeClass('active');
    $('#register_chedui').addClass('active');
    $('#div-chedui').show(500);
    $('#div-huodai,#div-chuandai,#div-huozhu,#div-siji').hide();
    document.getElementById('moto_name').value = 'moto1';
    document.getElementById('moto_password').value = '023456';
    document.getElementById('moto_password2').value = '023456';
    document.getElementById('moto_email').value = 'moto1@gmail.com';
    document.getElementById('moto_phone').value = '08907254550';
    document.getElementById('moto_description').value = 'food wood';
}

function register_driver_test1(){
    $('#register_huodai,#register_chuandai,#register_chedui,#register_huozhu').removeClass('active');
    $('#register_siji').addClass('active');
    $('#div-siji').show(500);
    $('#div-huodai,#div-chuandai,#div-chedui,#div-huozhu').hide();
    document.getElementById('driver_name').value = 'driver1';
    document.getElementById('driver_password').value = '023456';
    document.getElementById('driver_password2').value = '023456';
    document.getElementById('driver_email').value = 'driver1@gmail.com';
    document.getElementById('driver_phone').value = '08907254550';
    document.getElementById('driver_moto').value = 'moto0@gmail.com';
}

function login_test1(index){
	var user;
	switch(index){
		case 0:
			user = 'shipper1@gmail.com';
			break;
		case 0:
			user = 'sagent1@gmail.com';
			break;
		case 2:
			user = 'lagent1@gmail.com';
			break;
		case 3: 
			user = 'moto1@gmail.com';
			break;
		case 4:
			user = 'driver1@gmail.com';
			break;
	}
	document.getElementById('email').value = user;
    document.getElementById('password').value = '023456';
    document.getElementById('role').selectedIndex = index;
}

function shipper_inquiry1(){
    document.getElementById('inquiry_no').value = 'no0000000';
    document.getElementById('inquiry_shipper').value = 'shipper1';
    document.getElementById('inquiry_shipper_email').value = 'shipper1@gmail.com';
    document.getElementById('inquiry_departure').value = 'shanghai';
    document.getElementById('inquiry_dest').value = 'fujian';
    document.getElementById('inquiry_cargo').value = 'food';
    document.getElementById('inquiry_weight').value = '200';
    document.getElementById('inquiry_m3').value = '20';
    document.getElementById('inquiry_info').value = 'additional requirements';
}

function shipper_cargo1(){
    document.getElementById('cargo_no').value = 'cno0000000';
    document.getElementById('cargo_shipper').value = 'shipper1';
    document.getElementById('cargo_shipper_address').value = 'ECUST 030';
    document.getElementById('cargo_con').value = 'chouchangk';
    document.getElementById('cargo_con_addr').value = 'hubei';
    document.getElementById('cargo_departure').value = 'shanghai';
    document.getElementById('cargo_dest').value = 'hankou';
    document.getElementById('cargo_spec').value = 'spec';
    document.getElementById('cargo_name').value = 'food';
    document.getElementById('cargo_pieces').value = 'pieces';
    document.getElementById('cargo_weight').value = '200';
    document.getElementById('cargo_m3').value = '20';
    document.getElementById('cargo_charges').value = '2000000';
    document.getElementById('cargo_shipper_email').value = 'shipper1@gmail.com';
    document.getElementById('cargo_sagent_email').value = 'sagent1@gmail.com';
}

function shippingAgent_booking1(){
    document.getElementById('booking_shipper').value = 'shipper1';
    document.getElementById('booking_con').value = 'chouchangk';
    document.getElementById('booking_np').value = 'chouchangk';
    document.getElementById('booking_por').value = 'hubei';
    document.getElementById('booking_pol').value = 'shanghai';
    document.getElementById('booking_ov').value = 'k0029';
    document.getElementById('booking_podis').value = 'beijing';
    document.getElementById('booking_podel').value = 'food';
    document.getElementById('booking_mark').value = 'mark00';
    document.getElementById('booking_quantity').value = '200';
    document.getElementById('booking_cargo').value = 'food';
    document.getElementById('booking_weight').value = '2000';
    document.getElementById('booking_m3').value = '200';
    document.getElementById('booking_lae').value = 'lagent1@gmail.com';
}

function linerAgent_inter1(){
    document.getElementById('company').value = 'CHINA ECUST';
    document.getElementById('no').value = 'ino00000000';
    document.getElementById('cuser').value = 'sagent1';
    document.getElementById('pod').value = 'chouchangk';
    document.getElementById('dt').value = 'hubei';
    document.getElementById('por').value = 'shanghai';
    document.getElementById('vess').value = 'k0029';
    document.getElementById('cno').value = 'beijing';
    document.getElementById('size').value = 'food';
    document.getElementById('optr').value = 'mark00';
    document.getElementById('seal').value = '200';
    document.getElementById('truck').value = 'food';
    document.getElementById('pout').value = '2000';
    document.getElementById('pin').value = '200';
    document.getElementById('timeout').value = '2002-05-02';
    document.getElementById('sagentEmail').value = 'sagent1@gmail.com';
}

function linerAgent_bill1(){
    document.getElementById('bill_com').value = 'CHINA ECUST';
    document.getElementById('bill_con').value = 'chouchangk';
    document.getElementById('bill_name').value = 'food';
    document.getElementById('bill_addr').value = 'fujian';
    document.getElementById('bill_bank').value = 'abc';
    document.getElementById('bill_account').value = 'yybird';
    document.getElementById('bill_vess').value = 'k0029';
    document.getElementById('bill_voy').value = '008';
    document.getElementById('bill_pol').value = 'shanghai port';
    document.getElementById('bill_pod').value = 'fujian xiamen port';
    document.getElementById('bill_no').value = 'bno000000000';
    document.getElementById('bill_dp').value = 'something important';
    document.getElementById('bill_ocean').value = '000000';
    document.getElementById('bill_pou').value = 'xiamen port';
    document.getElementById('bill_ad').value = '2003-00-00';
    document.getElementById('bill_iyd').value = '2003-02-00';
    document.getElementById('bill_mark').value = 'mark';
    document.getElementById('bill_cargo').value = 'food';
    document.getElementById('bill_quantity').value = '2000';
    document.getElementById('bill_kg').value = '200000';
    document.getElementById('bill_vol').value = '200';
    document.getElementById('bill_agentemail').value = 'sagent1@gmail.com';
}

function moto_dispatch1(){
    document.getElementById('moto_no').value = 'mno0000000';
    document.getElementById('moto_name').value = 'driver1';
    document.getElementById('moto_start').value = '2002-05-02';
    document.getElementById('moto_due').value = '2002-05-30';
    document.getElementById('moto_comment').value = 'shanghai to fujian';
}

function shippingAgent_inter1(){
    document.getElementById('shippment_info_moto_email').value = 'moto1@gmail.com';
    document.getElementById('shippment_info_no').value = 'd000000000';
    document.getElementById('shippment_info_shipper').value = 'shipper1';
    document.getElementById('shippment_info_cno').value = 'sno0000000';
    document.getElementById('shippment_info_ov').value = 'sea no';
    document.getElementById('shippment_info_cargo').value = 'food';
    document.getElementById('shippment_info_boxes').value = '200';
    document.getElementById('shippment_info_quantity').value = '000000';
    document.getElementById('shippment_info_up').value = '2000';
    document.getElementById('shippment_info_tp').value = '4000000';
    document.getElementById('shippment_info_uv').value = '200';
    document.getElementById('shippment_info_tv').value = '300000';
    document.getElementById('shippment_info_tw').value = '40000';
    document.getElementById('shippment_info_poo').value = 'xiamen';
}
